package com.cxs.drawpointdemo.point;

import java.io.Serializable;

public class MyPoint implements Serializable {

    private float posX;
    private float posY;
    private boolean isLastPoint = false;

    public MyPoint() {
    }

    public MyPoint(float posX, float posY) {
        this.posX = posX;
        this.posY = posY;
    }

    public MyPoint(float posX, float posY, boolean isLastPoint) {
        this.posX = posX;
        this.posY = posY;
        this.isLastPoint = isLastPoint;
    }

    public float getPosX() {
        return posX;
    }

    public float getPosY() {
        return posY;
    }

    public boolean isLastPoint() { return isLastPoint; }
}
